﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace LanguageInfo.IDAL
{
    public interface IWordsDAL
    {
        DataSet WordsInfo(string strInfo, int StartIndex, int EndIndex);
        DataSet WordsInfoTop(string strInfo);
        DataSet WordsInfoByWordsId(string strWordsId);
        DataSet WordsInfoById(string strId);
        /// <summary>
        /// 批量新增词目
        /// </summary>
        /// <param name="AddTableds"></param>
        void InsertWordInfo(DataSet AddTableds);
        void UpdateWordInfo(DataSet UpdateByIdOrOrderDs);
        void DelWordInfoById(int intId);

        void DelWordInfoByWordIdAndPrimarySense(string WordsId, string PrimarySense);
        DataSet WordsInfoByWordIdAndPrimarySense(string WordsId, string PrimarySense);

        void InsertEditWordInfo(DataSet AddTableds);
        void UpdateEditWordInfo(DataSet UpdateByIdOrOrderDs);
        DataSet WordsInfoAttrTreeById(string strId);
        DataSet WordsInfoSensesTreeById(string strId);

        DataSet WordsInfoAttrInfoById(string strId);
    }
}
